import request from '@/utils/request'
//获取搜索(联想词汇)的请求数据//一定要写params不能写data
export const suggest = (params) => {
    return request({
        url: '/v1_0/suggestion',
        params
    })
}


// 旧接口封装的方法 --------------
export const getHistory = () => {

    return request({
        url: '/v1_0/search/histories',
    })
}

//获取真正搜索结果的请求数据//一定要写params不能写data
export const getSearchResult = (params) => {

    return request({
        url: '/v1_0/search',
        params
    })
}